// BWColorSearchAndReplaceController.h -- search and replace for colors.
//  a sheet

#import <Cocoa/Cocoa.h>

@class BWColorKey;
@class BWThread;

@interface BWColorSearchAndReplaceController : NSWindowController
{
    BWColorKey *colorKey;
    IBOutlet NSTableView *searchColorKeyTableView;
    IBOutlet NSTableView *replaceColorKeyTableView;

    IBOutlet NSArrayController *searchArrayController;
    IBOutlet NSArrayController *replaceArrayController;

    IBOutlet NSObjectController *fakeFilesOwner;
    
    BOOL crossStitches;
    BOOL backStitches;

    BWThread *search;
    BWThread *replace;
}

- (id) initWithColorKey: (BWColorKey *) colorKey;

- (IBAction) handleOK: (id) sender;
- (IBAction) handleCancel: (id) sender;

- (BOOL) replaceCrossStitches;
- (BOOL) replaceBackStitches;

- (BWThread *) searchThread;
- (BWThread *) replaceThread;

@end // BWColorSearchAndReplaceController

